<template>
    <div class="boxPlan">

        <!-- 1.人员管理 -->
        <div class="boxItem" v-show="personShow">
            <div class="item_left">
                <div class="l_item1 itemPublic">
                    <div class="border" style="background-color: #422517; width: 100%;height: 100%;text-align: center;">
                        <Box1></Box1>
                    </div>
                </div>
                <div class="l_item2">
                    <div style="background-color: #c12c1f; width: 100%;height: 100%;text-align: center;">
                        <Box4></Box4>
                    </div>
                </div>
            </div>
            <div class="item_right">
                <div class="r_item itemPublic">
                    <div style="background-color: #13393e; width: 100%;height: 100%;text-align: center;">
                        <Box2></Box2>
                    </div>
                </div>
                <div class="r_item itemPublic">
                    <div style="background-color: #422517; width: 100%;height: 100%;text-align: center;">
                        <Box3></Box3>
                    </div>
                </div>
                <div class="r_item itemPublic">
                    <div style="background-color: #9a6655; width: 100%;height: 100%;text-align: center;">
                        <Box5></Box5>
                    </div>
                </div>
                <div class="r_item itemPublic">
                    <div style="background-color: #79836c; width: 100%;height: 100%;text-align: center;">
                        <Box6></Box6>
                    </div>
                </div>
                <div class="r_item itemPublic">
                    <div style="background-color: #b81a35; width: 100%;height: 100%;text-align: center;">
                        <Box7></Box7>
                    </div>
                </div>
                <div class="r_item itemPublic">
                    <div style="background-color: #cc5d20; width: 100%;height: 100%;text-align: center;">
                        <Box8></Box8>
                    </div>
                </div>
            </div>
        </div>

        <!-- 2.物料管理 -->
        <!-- <div class="boxMater" v-show="materialShow">
            <iframe class="iframe" src="https://xmgl.glodon.com/gss-bi/dashboard/project/620440240833536/primary/625e77816a467c06e3ebd5d3" frameborder="0"></iframe>
        </div> -->

        <!-- 3.监控管理 -->
        <!-- <div class="boxMater" v-show="monitorShow">
            333
        </div> -->
    </div>
</template>

<script>
import Box1 from '@/pages/personnel/box1.vue';
import Box2 from '@/pages/personnel/box2.vue';
import Box3 from '@/pages/personnel/box3.vue';
import Box4 from '@/pages/personnel/box4.vue';
import Box5 from '@/pages/personnel/box5.vue';
import Box6 from '@/pages/personnel/box6.vue';
import Box7 from '@/pages/personnel/box7.vue';
import Box8 from '@/pages/personnel/box8.vue';

// let Echarts = require('echarts/lib/echarts'); //基础实例 注意不要使用import
require('echarts/lib/chart/bar'); //按需引入 bar = 柱状图
export default {
    name: "index",
    components: { Box1, Box2, Box3, Box4, Box5, Box6, Box7, Box8 },
    data() {
        return {
            comIndex: 0,

            // 服务切换标识
            personShow: true,
            materialShow: false,
            monitorShow: false,
        };
    },
    methods: {

    },

    mounted() {

    }
};
</script>

<style scoped="scoped">
body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgb(3, 12, 28);
    color: #ffffff;
}
.header-title {
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 0.5rem #00d8ff;
    font-size: 26px;
}
.header-img {
    background: url("../../assets/img/head.gif") no-repeat center center;
    background-size: 5%;
    height: 100%;
    width: 100%;
}

.boxPlan {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #070f22;
}

.boxHead {
    width: 100%;
    height: 40px;
    text-align: center;
    color: #fff;
    display: flex;
}
.tab {
    display: inline-block;
    vertical-align: middle;
    width: 102px;
    height: 40px;
    margin-right: 8px;
    padding-left: 8px;
    cursor: pointer;
}
.head_active {
    background: url("../../assets/img/header_tab_bg_on.5082c4e3.png") no-repeat;
    background-size: cover;
}
.head_inactive {
    background: url("../../assets/img/header_tab_bg_off.ea595848.png") no-repeat;
    background-size: cover;
}
.tab span {
    text-align: center;
    font-size: 16px;
    line-height: 40px;
    color: #fff;
}

.boxItem {
    width: 100%;
    height: calc(100vh - 80px);
    overflow: auto;
}

.itemPublic {
    float: left;
    height: calc((100vh - 80px) / 3);
    padding: 8px 5px;
    box-sizing: border-box;
}

.item_left,
.item_right {
    float: left;
    width: 50%;
    height: auto;
    overflow: hidden;
}

.l_item1 {
    width: 100%;
}

.l_item2 {
    float: left;
    width: 100%;
    height: calc((100vh - 80px) / 3 * 2);
    padding: 8px 5px;
    box-sizing: border-box;
}

.r_item {
    width: 50%;
}

@media screen and (max-width: 1080px) {
    .item_left,
    .item_right {
        width: 100%;
    }
    .l_item2 {
        height: calc((100vh - 80px) / 3 * 1);
    }
}

@media screen and (max-width: 80px) {
    .r_item {
        width: 100%;
    }
}

/* 物料管理 */
.boxMater {
    width: 100%;
    height: 100%;
    color: #fff;
}
.iframe {
    width: 100%;
    height: 100%;
    transform: scale(0.8);
    margin-top: -100px;
    /* margin-left: -10%; */
}

.Header_header__2rTyZ {
    display: flex;
    color: #fff;
    margin-bottom: 0.625rem;
}
.Header_header__2rTyZ .Header_header-top-line__WAkfm {
    position: absolute;
    top: 2.5rem;
    right: 0;
    width: calc(100% - 18.75rem);
    height: 0.0625rem;
    background: hsla(0, 0%, 100%, 0.2);
}
.Header_header__2rTyZ .Header_header-logo__1KvSl {
    position: relative;
    padding-top: 1.25rem;
    padding-left: 0.625rem;
    padding-bottom: 1.5rem;
    width: 18.75rem;
    height: 5.875rem;
    background: linear-gradient(
        180deg,
        rgba(17, 30, 55, 0.94),
        rgba(17, 30, 55, 0.72) 43%,
        rgba(17, 30, 55, 0.33) 47%,
        rgba(17, 30, 55, 0.79)
    );
}
.Header_header__2rTyZ .Header_header-logo__1KvSl:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    right: 0;
    bottom: 0;
    border-left: 1.0625rem solid transparent;
    border-bottom: 3.75rem solid red;
    border-right: 0 solid transparent;
    border-top: 0 solid red;
}
</style>
